package siruna.WE.core.model.VisualBlocks;

import java.io.InputStream;
import java.util.List;
import java.util.zip.ZipEntry;

import org.apache.http.MethodNotSupportedException;

import android.graphics.Bitmap.Config;

import siruna.WE.DeviceDependent.Global;
import siruna.WE.core.Constants;
import siruna.WE.core.Constants.InputTypes;
import siruna.WE.core.model.VisualBlock;

public class ImageImpl extends VisualBlock {

	private byte[] bytes;

	public void setBytes(byte[] bytes) {
		this.bytes = bytes;
	}

	public byte[] getBytes() {
		return bytes;
	}

	public void setInput(String att, byte[] bytes) {
		this.bytes = bytes;
	}

	@Override
	public InputTypes getType(String s) {
		if (s.equals("binimg")) {

			return Constants.InputTypes.bytearray;

		}
		return null;
	}

	@Override
	public byte[] toByteArray() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setInput(String att, List list) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public List toList() throws MethodNotSupportedException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String toHTML() {
		return "<img src=\"content://WebLocal/"+getWidgetName()+"/"+getAttributes().get("img")+"\" alt=\""+ "afbeelding"  +"\"/>";
	}

}
